import QtQuick 1.1
import com.meego 1.0
import "CommomUtil.js" as Util

ToolBarLayout{
    id: container
    width: 480; height: 73

    property bool isExite: false

    signal favorited

    ToolIcon{
        id: back_bt
        iconId: "toolbar-back"
        platformStyle: toolBar_style
        onClicked: {Util.back();}
    }

    ToolButton {
        id: others_bt
        iconSource: container.isExite ? "../images/favorite/ico1.png" : "../images/modelslib/info_ico.png"
        onClicked: { // 添加到收藏夹
            container.favorited();
        }

        platformStyle: toolBar_style
    }

    ToolButtonStyle{
        id: toolBar_style
        backgroundVisible: false
        pressedBackground: "image://theme/meegotouch-button-navigationbar-button" + __invertedString + "-background-pressed"
    }

}
